//
//  JMHeader.h
//  JMDome_1
//
//  Created by ios on 15/6/11.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#ifndef JMDome_1_JMHeader_h
#define JMDome_1_JMHeader_h

//+++++++++++++++++++++++++++++打印输出++++++++++++++++++++++++++++++++++++++++
#ifdef  DEBUG
#define DDLOG(...) NSLog(__VA_ARGS__)
#define DDLOG_CURRENT_METHOD            NSLog(@"%@-%@", NSStringFromClass([self class]), NSStringFromSelector(_cmd))
#define DDLOG_SCREEN_WIDTH_HEIGHT_X_Y   NSLog(@"%f-%f-%f-%f",UI_SCREEN_WIDTH,UI_SCREEN_HEIGHT,self.view.bounds.origin.x,self.view.bounds.origin.y)
#else

#define DDLOG(...) NSLog(__VA_ARGS__)
#define DDLOG(...) ;
#define DDLOG_CURRENT_METHOD ;

#endif

//++++++++++++++++++++++++++++系统版本+++++++++++++++++++++++++++++++++++++++++++
#define  IOS7                        [[[UIDevice currentDevice]systemVersion]floatValue] >= 7.f
#define iPhone5_System ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

//+++++++++++++++++++++++++++颜色配置++++++++++++++++++++++++++++++++++++++++++++
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define UIColorFromRGBWithAlpha(rgbValue,a) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]
#define RGBA(r,g,b,a)       [UIColor colorWithRed:((r)/255.0) green:((g)/255.0) blue:((b)/255.0) alpha:(a)]

#define iphone5  ([UIScreen mainScreen].bounds.size.height == 568)
#define iphone6  ([UIScreen mainScreen].bounds.size.height == 667)
#define iphone6Plus  ([UIScreen mainScreen].bounds.size.height == 736)
#define iphone4  ([UIScreen mainScreen].bounds.size.height == 480)

//+++++++++++++++++++++++++++屏幕的宽高大小++++++++++++++++++++++++++++++++++++++

#define  UI_SCREEN_WITH      [UIScreen mainScreen].bounds.size.width
#define  UI_SCREEN_HEIGHT    [UIScreen mainScreen].bounds.size.height


#define  JM_MainViewController 0
#define  JM_GuidViewController 1
#define  JM_LoginViewController 3


#endif
